const webpack = require('webpack');

module.exports = {
	outputDir: './docs/3dlive',
	publicPath: './',
	chainWebpack: config => {
		config.module.rules.delete('eslint');
	},
	configureWebpack: {
		plugins: [
			new webpack.DefinePlugin({
				// Vue CLI is in maintenance mode, and probably won't merge my PR to fix this in their tooling
				// Vue CLI 处于维护模式，可能不会合并我的 PR 以在他们的工具中修复此问题
				// https://github.com/vuejs/vue-cli/pull/7443
				__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: 'false',
			})
		],
	},
}